package com.hand.demo.infra.repository.impl;

import org.apache.commons.collections.CollectionUtils;
import org.hzero.mybatis.base.impl.BaseRepositoryImpl;
import org.springframework.stereotype.Component;
import com.hand.demo.domain.entity.HhrTaSkills;
import com.hand.demo.domain.repository.HhrTaSkillsRepository;
import com.hand.demo.infra.mapper.HhrTaSkillsMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * 技能表(HhrTaSkills)资源库
 *
 * @author
 * @since 2025-06-16 12:16:52
 */
@Component
public class HhrTaSkillsRepositoryImpl extends BaseRepositoryImpl<HhrTaSkills> implements HhrTaSkillsRepository {
    @Resource
    private HhrTaSkillsMapper hhrTaSkillsMapper;

    @Override
    public List<HhrTaSkills> selectList(HhrTaSkills hhrTaSkills) {
        return hhrTaSkillsMapper.selectList(hhrTaSkills);
    }

    @Override
    public HhrTaSkills selectByPrimary(Long id) {
        HhrTaSkills hhrTaSkills = new HhrTaSkills();
        hhrTaSkills.setId(id);
        List<HhrTaSkills> hhrTaSkillss = hhrTaSkillsMapper.selectList(hhrTaSkills);
        if (hhrTaSkillss.size() == 0) {
            return null;
        }
        return hhrTaSkillss.get(0);
    }

}

